def remove_none_fields(data):
    for key in list(data.keys()):
        if data[key] is None:
            data.pop(key)
    return data
